import axios from 'axios'
axios.defaults.baseURL="http://www.zhaijizhe.cn:3005"

axios.interceptors.request.use(config=>{
    config.headers['Authorization']=localStorage.getItem('token')
    return config
})

axios.interceptors.response.use(response=>{
    return response.data
},error=>{
    return Promise.reject(error)
})
export default axios

